package com.cy.pj.sys.pojo;

import lombok.Data;

import java.io.Serializable;

@Data
public
//@NoArgsConstructor  无参构造函数
class JsonResult implements Serializable {
    private static final long serialVersionUID = -868996739646416767L;
    /**状态码设计*/
    private Integer state=1; //1-OK ,0-eRRor
    /**状态信息*/
    private String message="OK";
    /**查询响应结果*/
    private Object data;
    public JsonResult(String message){
        this.message=message;
    }
    public JsonResult(Object data){
        this.data=data;
    }
    public JsonResult(Throwable e){
        this.state=0;
        this.message=e.getMessage();
    }
//    public JsonResult(ISelect select){
//        this.data = PageUtil.startPage().doSelectPageInfo(select);}
}
